package lpg;

class Arguments
{
    Arguments(Option option, String filename,
            String expFile, String expPrefix, String expSuffix)
    {
        args = new String[]
            {
                (option.quiet ? "-" : "-NO") + OptionEnum.QUIET.name(),
                "-" + OptionEnum.EXPORT_TERMINALS.name() +
                        "=(\"" + expFile + "\",\"" + expPrefix + "\",\"" + expSuffix + "\")",
                "-" + OptionEnum.INCLUDE_DIRECTORY.name() + '=' + option.includeDirectory,
                "-" + OptionEnum.PACKAGE.name() + '=' + option.packageName,
                "-" + OptionEnum.AST_DIRECTORY.name() + '=' + option.astDirectory,
                "-" + OptionEnum.DIRECTORY_PREFIX.name() + '=' + option.directoryPrefix,
                filename
            };
    }

    final String[] args;

}
